import i18n from 'i18n-js';
import React from 'react';
import Alert from '@/components/Alert';

interface IProps {
  onClose: () => void;
  onConfirm: () => void;
  visible: boolean;
}

const StopShareAlert = React.memo(({ onClose, onConfirm, visible }: IProps) => {
  return (
    <Alert
      title={i18n.t('SURE_STOP_SHATE')}
      content={i18n.t('SURE_STOP_SHATE_TIPS')}
      visible={visible}
      onCancel={onClose}
      onConfirm={onConfirm}
    />
  );
});

export default StopShareAlert;
